import auth.DefaultApiAuthencatorImpl;
import token.AuthToken;

public class Client {
    public static void main(String[] args) {
        String baseUrl = "http://Authencator/aaa";
        String appId = "1001";
        long timestamp = System.currentTimeMillis();
        String password = "PASS-1001";
        AuthToken token = AuthToken.create(baseUrl, appId, timestamp, password);

        String req = "http://Authencator/aaa?"
                + "appId=1001"
                + "&token="+token.getToken()
                + "&timestamp="+timestamp;;

        DefaultApiAuthencatorImpl authencator = new DefaultApiAuthencatorImpl();
        authencator.auth(req);
    }
}
